package chapter04.Example25;

public class Example25 {
    public static void main(String[] args) {
        try {
            int result = divide(4, 0);
        }catch (Exception e){
            System.out.println("捕获的异常信息为: " + e.getMessage());
        }
        System.out.println("程序继续向下执行...");
    }
    public static int divide(int x, int y) {
        int result = x / y;
        return result;
    }
}
